import React from "react";
import { formatMessage } from "umi/locale";
import Link from "umi/link";
import Exception from "@/components/Exception";

const Exception403 = (props) => {
  // setTimeout(() => {
  //   props.history?.replace("/user/login");
  // }, 3000);
  return (
    <Exception
      type="403"
      desc={formatMessage({ id: "app.exception.description.403" })}
      linkElement={Link}
      backText={formatMessage({ id: "app.exception.back" })}
    />
  );
};

export default Exception403;
